package cn.fl.fgi.service;

import cmm.mid.core.framework.page.KeyValueVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.fgi.vo.FgiGuarRateVO;

import java.util.List;

/**
 * @Description: 融担费率配置表 客户端服务层接口
 */
public interface IFgiGuarRateService {
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public FgiGuarRateVO selectById(Long id)throws BaseException;

    /**
     * 根据方案编号查询
     * @param
     * @return 对象DTO
     */
    public FgiGuarRateVO selectByProgramNo(String programNo) throws BaseException;
	
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(FgiGuarRateVO entity) throws BaseException;

    /**
     * 批量新增
     * @param list
     * @return
     * @throws BaseException
     */
    public boolean batchAdd(List<FgiGuarRateVO> list) throws BaseException;

    /**
     * 删除
     * @param id
     * @return
     */
    public boolean removeById(Long id)throws BaseException;
    
    /**
     * 删除
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids)throws BaseException;

    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(FgiGuarRateVO entity)throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page) throws BaseException, IllegalAccessException;
    
    /**
     * 根据条件查询所有
     */
    public List<FgiGuarRateVO> searchList(String conditionStr) throws BaseException;

    /**
     * beInvalid
     */
    public boolean beInvalid(List<Long> ids) throws BaseException;

    /**
     * 获取业务类型键值对
     */
    public List<KeyValueVO> getBusSourceTypeMap() ;

}
